#ifndef SUBWIDGET_H
#define SUBWIDGET_H

#include <QPushButton>
#include <QWidget>

class SubWidget : public QWidget {
  Q_OBJECT
 public:
  explicit SubWidget(QWidget *parent = nullptr);
  void sendSlot();

 signals:
  void mySignal();
  //信号可以重载
  void mySignal(int, QString);

 public slots:

 private:
  QPushButton b;
};

#endif  // SUBWIDGET_H
